Optimal. Leaf size=130 \[ -\frac {e f^2 p}{12 d x^4}+\frac {e f (e f-3 d g) p}{6 d^2 x^2}+\frac {e \left (e^2 f^2-3 d e f g+3 d^2 g^2\right ) p \log (x)}{3 d^3}-\frac {(e f-d g)^3 p \log \left (d+e x^2\right )}{6 d^3 f}-\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2525, 37, 2461,
12, 90} \begin {gather*} -\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}-\frac {p (e f-d g)^3 \log \left (d+e x^2\right )}{6 d^3 f}+\frac {e f p (e f-3 d g)}{6 d^2 x^2}+\frac {e p \log (x) \left (3 d^2 g^2-3 d e f g+e^2 f^2\right )}{3 d^3}-\frac {e f^2 p}{12 d x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 37
Rule 90
Rule 2461
Rule 2525
Rubi steps
\begin {align*} \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(f+g x)^2 \log \left (c (d+e x)^p\right )}{x^4} \, dx,x,x^2\right )\\ &=-\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}-\frac {1}{2} (e p) \text {Subst}\left (\int -\frac {(f+g x)^3}{3 f x^3 (d+e x)} \, dx,x,x^2\right )\\ &=-\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}+\frac {(e p) \text {Subst}\left (\int \frac {(f+g x)^3}{x^3 (d+e x)} \, dx,x,x^2\right )}{6 f}\\ &=-\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}+\frac {(e p) \text {Subst}\left (\int \left (\frac {f^3}{d x^3}+\frac {f^2 (-e f+3 d g)}{d^2 x^2}+\frac {f \left (e^2 f^2-3 d e f g+3 d^2 g^2\right )}{d^3 x}+\frac {(-e f+d g)^3}{d^3 (d+e x)}\right ) \, dx,x,x^2\right )}{6 f}\\ &=-\frac {e f^2 p}{12 d x^4}+\frac {e f (e f-3 d g) p}{6 d^2 x^2}+\frac {e \left (e^2 f^2-3 d e f g+3 d^2 g^2\right ) p \log (x)}{3 d^3}-\frac {(e f-d g)^3 p \log \left (d+e x^2\right )}{6 d^3 f}-\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 141, normalized size = 1.08 \begin {gather*} -\frac {d e f p x^2 \left (-2 e f x^2+d \left (f+6 g x^2\right )\right )-4 e \left (e^2 f^2-3 d e f g+3 d^2 g^2\right ) p x^6 \log (x)+2 e \left (e^2 f^2-3 d e f g+3 d^2 g^2\right ) p x^6 \log \left (d+e x^2\right )+2 d^3 \left (f^2+3 f g x^2+3 g^2 x^4\right ) \log \left (c \left (d+e x^2\right )^p\right )}{12 d^3 x^6} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.45, size = 656, normalized size = 5.05
method | result | size |
risch | \(-\frac {\left (3 g^{2} x^{4}+3 f g \,x^{2}+f^{2}\right ) \ln \left (\left (e \,x^{2}+d \right )^{p}\right )}{6 x^{6}}+\frac {3 i \pi \,d^{3} f g \,x^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}+3 i \pi \,d^{3} g^{2} x^{4} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \right )-3 i \pi \,d^{3} g^{2} x^{4} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}-3 i \pi \,d^{3} g^{2} x^{4} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )-6 \ln \left (e \,x^{2}+d \right ) d^{2} e \,g^{2} p \,x^{6}+6 \ln \left (e \,x^{2}+d \right ) d \,e^{2} f g p \,x^{6}-2 \ln \left (e \,x^{2}+d \right ) e^{3} f^{2} p \,x^{6}+12 \ln \left (x \right ) d^{2} e \,g^{2} p \,x^{6}-12 \ln \left (x \right ) d \,e^{2} f g p \,x^{6}+4 \ln \left (x \right ) e^{3} f^{2} p \,x^{6}+3 i \pi \,d^{3} g^{2} x^{4} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}+i \pi \,d^{3} f^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}-3 i \pi \,d^{3} f g \,x^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )-3 i \pi \,d^{3} f g \,x^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+3 i \pi \,d^{3} f g \,x^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \right )+i \pi \,d^{3} f^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \right )-i \pi \,d^{3} f^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )-i \pi \,d^{3} f^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}-6 \ln \left (c \right ) d^{3} g^{2} x^{4}-6 d^{2} e f g p \,x^{4}+2 d \,e^{2} f^{2} p \,x^{4}-6 \ln \left (c \right ) d^{3} f g \,x^{2}-d^{2} e \,f^{2} p \,x^{2}-2 \ln \left (c \right ) d^{3} f^{2}}{12 d^{3} x^{6}}\) | \(656\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 142, normalized size = 1.09 \begin {gather*} -\frac {1}{12} \, p {\left (\frac {2 \, {\left (3 \, d^{2} g^{2} - 3 \, d f g e + f^{2} e^{2}\right )} \log \left (x^{2} e + d\right )}{d^{3}} - \frac {2 \, {\left (3 \, d^{2} g^{2} - 3 \, d f g e + f^{2} e^{2}\right )} \log \left (x^{2}\right )}{d^{3}} + \frac {d f^{2} + 2 \, {\left (3 \, d f g - f^{2} e\right )} x^{2}}{d^{2} x^{4}}\right )} e - \frac {{\left (3 \, g^{2} x^{4} + 3 \, f g x^{2} + f^{2}\right )} \log \left ({\left (x^{2} e + d\right )}^{p} c\right )}{6 \, x^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 199, normalized size = 1.53 \begin {gather*} \frac {2 \, d f^{2} p x^{4} e^{2} - {\left (6 \, d^{2} f g p x^{4} + d^{2} f^{2} p x^{2}\right )} e - 2 \, {\left (3 \, d^{2} g^{2} p x^{6} e - 3 \, d f g p x^{6} e^{2} + 3 \, d^{3} g^{2} p x^{4} + f^{2} p x^{6} e^{3} + 3 \, d^{3} f g p x^{2} + d^{3} f^{2} p\right )} \log \left (x^{2} e + d\right ) - 2 \, {\left (3 \, d^{3} g^{2} x^{4} + 3 \, d^{3} f g x^{2} + d^{3} f^{2}\right )} \log \left (c\right ) + 4 \, {\left (3 \, d^{2} g^{2} p x^{6} e - 3 \, d f g p x^{6} e^{2} + f^{2} p x^{6} e^{3}\right )} \log \left (x\right )}{12 \, d^{3} x^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 791 vs.
\(2 (128) = 256\).
time = 5.80, size = 791, normalized size = 6.08 \begin {gather*} -\frac {{\left (6 \, {\left (x^{2} e + d\right )}^{3} d^{2} g^{2} p e^{2} \log \left (x^{2} e + d\right ) - 12 \, {\left (x^{2} e + d\right )}^{2} d^{3} g^{2} p e^{2} \log \left (x^{2} e + d\right ) + 6 \, {\left (x^{2} e + d\right )} d^{4} g^{2} p e^{2} \log \left (x^{2} e + d\right ) - 6 \, {\left (x^{2} e + d\right )}^{3} d^{2} g^{2} p e^{2} \log \left (x^{2} e\right ) + 18 \, {\left (x^{2} e + d\right )}^{2} d^{3} g^{2} p e^{2} \log \left (x^{2} e\right ) - 18 \, {\left (x^{2} e + d\right )} d^{4} g^{2} p e^{2} \log \left (x^{2} e\right ) + 6 \, d^{5} g^{2} p e^{2} \log \left (x^{2} e\right ) - 6 \, {\left (x^{2} e + d\right )}^{3} d f g p e^{3} \log \left (x^{2} e + d\right ) + 18 \, {\left (x^{2} e + d\right )}^{2} d^{2} f g p e^{3} \log \left (x^{2} e + d\right ) - 12 \, {\left (x^{2} e + d\right )} d^{3} f g p e^{3} \log \left (x^{2} e + d\right ) + 6 \, {\left (x^{2} e + d\right )}^{3} d f g p e^{3} \log \left (x^{2} e\right ) - 18 \, {\left (x^{2} e + d\right )}^{2} d^{2} f g p e^{3} \log \left (x^{2} e\right ) + 18 \, {\left (x^{2} e + d\right )} d^{3} f g p e^{3} \log \left (x^{2} e\right ) - 6 \, d^{4} f g p e^{3} \log \left (x^{2} e\right ) + 6 \, {\left (x^{2} e + d\right )}^{2} d^{3} g^{2} e^{2} \log \left (c\right ) - 12 \, {\left (x^{2} e + d\right )} d^{4} g^{2} e^{2} \log \left (c\right ) + 6 \, d^{5} g^{2} e^{2} \log \left (c\right ) + 6 \, {\left (x^{2} e + d\right )}^{2} d^{2} f g p e^{3} - 12 \, {\left (x^{2} e + d\right )} d^{3} f g p e^{3} + 6 \, d^{4} f g p e^{3} + 2 \, {\left (x^{2} e + d\right )}^{3} f^{2} p e^{4} \log \left (x^{2} e + d\right ) - 6 \, {\left (x^{2} e + d\right )}^{2} d f^{2} p e^{4} \log \left (x^{2} e + d\right ) + 6 \, {\left (x^{2} e + d\right )} d^{2} f^{2} p e^{4} \log \left (x^{2} e + d\right ) - 2 \, {\left (x^{2} e + d\right )}^{3} f^{2} p e^{4} \log \left (x^{2} e\right ) + 6 \, {\left (x^{2} e + d\right )}^{2} d f^{2} p e^{4} \log \left (x^{2} e\right ) - 6 \, {\left (x^{2} e + d\right )} d^{2} f^{2} p e^{4} \log \left (x^{2} e\right ) + 2 \, d^{3} f^{2} p e^{4} \log \left (x^{2} e\right ) + 6 \, {\left (x^{2} e + d\right )} d^{3} f g e^{3} \log \left (c\right ) - 6 \, d^{4} f g e^{3} \log \left (c\right ) - 2 \, {\left (x^{2} e + d\right )}^{2} d f^{2} p e^{4} + 5 \, {\left (x^{2} e + d\right )} d^{2} f^{2} p e^{4} - 3 \, d^{3} f^{2} p e^{4} + 2 \, d^{3} f^{2} e^{4} \log \left (c\right )\right )} e^{\left (-1\right )}}{12 \, {\left ({\left (x^{2} e + d\right )}^{3} d^{3} - 3 \, {\left (x^{2} e + d\right )}^{2} d^{4} + 3 \, {\left (x^{2} e + d\right )} d^{5} - d^{6}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.41, size = 151, normalized size = 1.16 \begin {gather*} \frac {\ln \left (x\right )\,\left (3\,p\,d^2\,e\,g^2-3\,p\,d\,e^2\,f\,g+p\,e^3\,f^2\right )}{3\,d^3}-\frac {\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\,\left (\frac {f^2}{6}+\frac {f\,g\,x^2}{2}+\frac {g^2\,x^4}{2}\right )}{x^6}-\frac {\ln \left (e\,x^2+d\right )\,\left (3\,p\,d^2\,e\,g^2-3\,p\,d\,e^2\,f\,g+p\,e^3\,f^2\right )}{6\,d^3}-\frac {\frac {e\,f^2\,p}{4\,d}+\frac {e\,f\,p\,x^2\,\left (3\,d\,g-e\,f\right )}{2\,d^2}}{3\,x^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________